package jp.tkym.labs.swing3d.drawer;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.geom.AffineTransform;


public class DrawRect implements DrawG2D{
	final Point point;
	final Dimension dimension;
	final Color color;
	final AffineTransform tx;
	
	public DrawRect(Point point, Dimension dimension, Color color, AffineTransform transform){
		this.point = point;
		this.dimension = dimension;
		this.color = color;
		this.tx = transform;
	}
	
	@Override
	public void draw(Graphics2D g2d) {
		Color oldColor = g2d.getColor();
		g2d.setColor(color);
		g2d.fillRect(0, 0, dimension.width, dimension.height);
		g2d.setColor(oldColor);
	}
}